package net.huashitong.ssydt.user.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author huiyang.yu
 */
@ApiModel(description = "登录入参")
public class LoginInVO extends BaseLoginVO {

    private static final long serialVersionUID = -3105040390172792625L;

    @ApiModelProperty(value = "手机号（用户名）", required = true)
    @NotEmpty(message = "手机号码（用户名）不能为空")
    private String mobile;//手机号（用户名）

    @ApiModelProperty(value = "密码，须Base64加密传输", required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;//密码

    public LoginInVO() {
    }

    public LoginInVO(String mobile, String password) {
        this.mobile = mobile;
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}


